package cn.caojun.basic.mapper;

import cn.caojun.basic.query.BaseQuery;
import cn.caojun.basic.utils.QueryUtils;
import cn.caojun.org.domain.Department;
import cn.caojun.org.query.DepartmentQuery;

import java.io.Serializable;
import java.util.List;

public interface BaseMapper<T> {
    void insert(T t);

    void update(T t);

    void deleteById(Serializable id);

    T loadById(Serializable id);

    List<T> loadAll();

    Long getSize(BaseQuery baseQuery);

    List<T> getDate(BaseQuery baseQuery);

    void batchDelete(List<Long> ids);
}
